package com.bruce.service;

import com.bruce.entity.User;
import com.springmvc.anotation.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Override
    public List<User> findUsers(String name) {
        List<User> users = new ArrayList<>();
        users.add(new User(1,"老王","123"));
        users.add(new User(2,"老er","123"));
        return users;
    }

    @Override
    public String getUserMessage(String name) {
        return "调用成功";
    }
}
